#include <sys/socket.h>
#include <netinet/in.h>
#include <sys/types.h>
#include <event.h>

typedef void (*MesonHook)(void *data, 
			  size_t len, 
			  char *node);

int meson_init(unsigned short port,
		unsigned int backlog);

void meson_fini();

void meson_hook(char *node, MesonHook hook);

void meson_send(void *data, 
		size_t len, 
		char *node);

void meson_timer();

void meson_run();
